package com.irving;

public class SingletonTest {

    public static void main(String[] args) {

        Thread t1 = new Thread(() -> {
            DoubleCheckLazySingleton d1 = DoubleCheckLazySingleton.getInstance();
            System.out.println(d1);
        });
        Thread t2 = new Thread(() -> {
            DoubleCheckLazySingleton d2 = DoubleCheckLazySingleton.getInstance();
            System.out.println(d2);
        });

        t1.start();
        t2.start();

    }
}
